<template>
  <div>
    <el-button @click="logout"
               type="danger">安全退出</el-button>
  </div>
</template>

<script>   
export default {
  name: 'home',
  methods: {
    logout () {
      window.sessionStorage.clear
      this.$router.push('/login')
    }
  }
}
</script>

<style>
</style>
